package com.ztao.feign;
import com.heima.model.common.dtos.ResponseResult;
import com.ztao.api.wemedia.IWemediaClient;
import com.ztao.service.WmChannelService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

@RestController
public class WemediaClient implements IWemediaClient {

    @Resource
    private WmChannelService wmChannelService;

    @GetMapping("/api/v1/channel/list")
    @Override
    public ResponseResult getChannels() {
        return wmChannelService.findAll();
    }
}